package com.luck.emp.entity;

import com.luck.pf.util.FormateUtil;

/**
 * 说明:ENEITY类
 * Copyright: Copyright (c) 2011
 * 深圳**科技
 * @author 
 * 
 */
public class EmpTSlOrderD implements java.io.Serializable {
		/**
		 * pk
		 * 
		 **/
		Long id;
		/**
		 * 订单主表
		 **/
		String slCode;
		/**
		 * 仓库编码
		 **/
		String whCode;
		/**
		 * 商品编码
		 **/
		String productCode;
		EmpTProdBase product;
		/**
		 * 数量
		 **/
		Long qty;
		/**
		 * 计量单位
		 **/
		String measUnit;
		/**
		 * 销售价
		 **/
		Double price;
		/**
		 * 折扣额
		 **/
		Double discPrice;
		/**
		 * 实际销售价=销售价-折扣额
		 **/
		Double realPrice;
		/**
		 * 成本价
		 **/
		Double stdPrice;
		/**
		 * 结算价
		 **/
		Double stockPrice;
	
	public EmpTSlOrderD(){
	}
	
		public Long getId(){
			return this.id;
		}		
		public void setId(Long id){
			this.id = id;
		}
		public String getSlCode(){
			return this.slCode;
		}		
		public void setSlCode(String slCode){
			this.slCode = slCode;
		}
		public String getWhCode(){
			return this.whCode;
		}		
		public void setWhCode(String whCode){
			this.whCode = whCode;
		}
		public String getProductCode(){
			return this.productCode;
		}		
		public void setProductCode(String productCode){
			this.productCode = productCode;
		}

		public String getMeasUnit(){
			return this.measUnit;
		}		
		public void setMeasUnit(String measUnit){
			this.measUnit = measUnit;
		}
		public Double getPrice(){
			return this.price;
		}		
		public void setPrice(Double price){
			this.price = price;
		}
		public Double getDiscPrice(){
			return this.discPrice;
		}		
		public void setDiscPrice(Double discPrice){
			this.discPrice = discPrice;
		}
		public Double getRealPrice(){
			return this.realPrice;
		}		
		public void setRealPrice(Double realPrice){
			this.realPrice = realPrice;
		}
		public Double getStdPrice(){
			return this.stdPrice;
		}		
		public void setStdPrice(Double stdPrice){
			this.stdPrice = stdPrice;
		}
		public Double getStockPrice(){
			return this.stockPrice;
		}		
		public void setStockPrice(Double stockPrice){
			this.stockPrice = stockPrice;
		}
	

		public EmpTProdBase getProduct() {
			return product;
		}

		public void setProduct(EmpTProdBase product) {
			this.product = product;
		}

		public Long getQty() {
			return qty;
		}

		public void setQty(Long qty) {
			this.qty = qty;
		}

		public String getPriceStr(){
			return FormateUtil.getInstance().formateDouble(this.price);
		}
		public String getDiscPriceStr(){
			return FormateUtil.getInstance().formateDouble(this.discPrice);
		}
		public String getRealPriceStr(){
			return FormateUtil.getInstance().formateDouble(this.realPrice);
		}
		public String getStdPriceStr(){
			return FormateUtil.getInstance().formateDouble(this.stdPrice);
		}
		public String getStockPriceStr(){
			return FormateUtil.getInstance().formateDouble(this.stockPrice);
		}
	
}